﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Fdd.Aspen.Services.Web.Dtos;
using Fdd.Aspen.Client.ViewModels.DataChannels;

namespace SilverlightTest
{
    class ListMemberViewModelDataChannel : IListMemberViewModelDataChannel
    {
        public void GetAllMembersAsync(Action<IEnumerable<MemberDto>> getAllMembersCompletedCallBack)
        {
            var members = new List<MemberDto>()
                          {
                              new MemberDto() { ID = 1, FirstName = "John", LastName = "Doe" },
                              new MemberDto() { ID = 1, FirstName = "Jane", LastName = "Doe" }
                          };

            getAllMembersCompletedCallBack(members);
        }


        public void Save()
        {
            throw new NotImplementedException();
        }
    }
}
